﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CLA_List.aspx.cs" Inherits="Web.admin.BasicManage.Classes.CLA_List" %>
<%@ Register Assembly="Ling.Pager" Namespace="Ling.Pager" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <script src="../../js/ajax.js" type="text/javascript"></script>
    <script src="../../js/WebCalendar.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function check() {
            if ($(".txt_ClassName").val() == "") {
                alert("班级名称不允许为空");
                return false;
            }
            else if ($(".txt_ClassCode").val() == "") {
                alert("班级编号不允许为空");
                return false;
            }
            else {
                return true;
            }
        }
        function check1() {
            if ($("#txt_ClassName_edit").val() == "") {
                alert("班级名称不允许为空");
                return false;
            }
            else if ($("#txt_ClassCode_edit").val() == "") {
                alert("班级编号不允许为空");
                return false;
            }
            else {
                return true;
            }
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img alt="" src="../../images/main_hl.gif" /></td>
                        <td ><img alt="" src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>班级列表</span></td>
                        <td><img alt="" src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;竞赛设置管理&gt;班级列表</span></div>
            <div class="tools_box">
                <div class="tools_bar">
                    <a href='AddClasses.aspx'  class="tools_btn" ><span><b class="add">添加班级</b></span></a>
                    <a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>
                    <asp:LinkButton runat="server" CssClass="tools_btn" ID="btn_Delete"  OnClientClick="return confirm( '确定要删除这些记录吗？ ');" OnClick="BatchDelete"><span><b class="delete">批量删除</b></span></asp:LinkButton>
                    <a href="CLA_InsertAll.aspx"  class="tools_btn" ><span><b class="add">班级导入</b></span></a>
                </div>
            </div>
            <div class="chooseClass">
                <span style="color:#999">选择学院：</span>
                <asp:DropDownList ID="ddl_ACA" CssClass="ddlList" runat="server"  OnTextChanged="ddl_ACA_TextChange" AutoPostBack="true" >
                </asp:DropDownList>
                <span style="color:#999">选择年级：</span> 
                <asp:DropDownList ID="ddl_Grade" CssClass="ddlList" runat="server"   
                    AutoPostBack="true" onselectedindexchanged="ddl_ACA_TextChange" >
                </asp:DropDownList>
            </div>
            <div class="content_table">
                <table class="msgtable">
                    <asp:Repeater ID="RpList" runat="server" OnItemCommand="RpOperate">
                        <HeaderTemplate>
                            <tr>
                                <th>选择</th>
                                <th>编号</th>
                                <th>班级名称</th>
                                <th>所属学院</th>
                                <th>班级简称</th>
                                <th>人数</th>
                                <th>入学日期</th>
                                <th>年级</th>
                                <th>专业</th>
                                <th>学制类型</th>
                                <th>所在校区</th>
                                
                                <th>备注</th><th>操作</th>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr id="class_<%#Eval("CLA_ID") %>">
                                <td><asp:CheckBox ID="CbChoose" CssClass="checkBox" runat="server" /><asp:HiddenField ID="hf_ClassId" runat="server" Value='<%#Eval("CLA_ID")%>' /></td>
                                <td><%#Eval("CLA_CODE")%></td>
                                <td><%#Eval("CLA_NAME")%></td>
                                <td><%#Eval("ACA_NAME")%></td>
                                <td><%#Eval("CLA_SHORT")%></td>
                                <td><%#Eval("CLA_STUNUM")%></td>
                                <td><%#Eval("CLA_INDATE")%></td>
                                <td><%#Eval("CLA_GRADE")%></td>
                                <td><%#Eval(" MAJ_NAME")%></td>
                                <td><%#Eval(" CLA_SYSTYPE")%></td>
                                <td><%#Eval(" LOC_NAME")%></td>
                                <td><%#Eval(" CLA_REMARK")%></td>
                                <td><asp:LinkButton runat="server" ID="delClass" CommandName="delClass">删除</asp:LinkButton>|<a href='AddClasses.aspx?OPERATION=Modify&CLA_ID=<%#Eval("CLA_ID")%>'>修改</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <center>
                <div class="div_page">
                        <cc1:Pager ID="Pager1" runat="server"></cc1:Pager>
                </div>
            </center>
           </div>
      </div>
    </form>
</body>
</html>